package cn.xn.hrms.api.dto.res;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
    * 请假条表
    */
@Data
public class LeaveDTO {
    private Long leaveId;

    /**
    * 请假人
    */
    private Integer personalId;

    /**
    * 请假类型：1-事假 2-年假 3-婚假 4-产假 5-陪产假 6-丧假 7-调休假 8-其它
    */
    private Integer leaveType;

    /**
    * 请假开始时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date leaveStartTime;

    /**
    * 请假结束时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date leaveEndTime;

    /**
    * 请假原因
    */
    private String reason;

    /**
    * 审批人
    */
    private Integer personalIdApprove;

    /**
    * 审批时间
    */
    private Date approveTime;

    /**
    * 审批状态 1-已提交 2-审批通过 3-审批拒绝
    */
    private Integer leaveStatus;

    /**
     * 请假人姓名
     */
    private String leaverName;

    private String approverName;

    private String approveRemark;
    private Integer leaveIsDeleted;
}
